<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:dc="http://purl.org/dc/terms/"
	xmlns:foaf="http://xmlns.com/foaf/0.1/"
	xmlns:doap="http://usefulinc.com/ns/doap#" >

<head>
	{% include "base_css.html" %}
	<link type="text/css" href="{{ STATIC_URL}}css/vader/jquery-ui-1.7.2.custom.css" rel="Stylesheet" />
	<script type="text/javascript" src="{{ STATIC_URL}}js/jquery-1.3.2.min.js"></script> 
	<script type="text/javascript" src="{{ STATIC_URL}}js/jquery-ui-1.7.2.custom.min.js"></script> 


	{% block scripts %}
	{% endblock scripts %}
	
	<title>{% block head_title %}{% endblock %}</title>
</head>

<body>

<div class="container_12">

<div id = "identification" class = "grid_3">
        {% if user.is_authenticated %}
                <p typeof="foaf:Person">Welcome, <span property="foaf:givenname">{{ user.first_name }} </span><span property="foaf:surname">{{ user.last_name }}</span><br />
		<a class="fg-button ui-state-default ui-corner-all" href="/experimentdb/accounts/login/">Change User</a></p>
        {% else %}
                <p>Welcome, please <a class="fg-button ui-state-default ui-corner-all"  href="/experimentdb/accounts/login/">log in.</a></p>
        {% endif %}
</div>
<div id = "menu" class = "grid_9">
	<ul>
	<li><a href="{% url project-list %}" target="_self">Projects</a></li>
	<li><a href="/experimentdb/experiments" target="_self">Experiments</a></li>
	<li><a href="{% url protein-list %}" target="_self">Proteins</a></li>
	<li><a href="{% url reagent-list %}" target="_self">Reagents</a></li>
	<li><a href="{% url protocol-list %}" target="_self">Protocols</a></li>
	{% if user.is_staff %}<li><a href="/experimentdb/admin" target="_self">Admin</a></li>{% endif %}
	<li><a href="/experimentdb/search" target="_self">Search</a></li>
	</ul>
</div>

<div id = "messages" class="grid_12">
	<ul>
    	{% for message in messages %}
	<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
    	{% endfor %}
	</ul>	
</div>	

<div id ="main" class="grid_12">
	<h1 property="dc:title">{% block title %}{% endblock %}</h1>
	{% block content %}{% endblock %}
</div>

<div class="clear">
</div>
<div id="footer_specific" class="grid_12">{% block footer %}{% endblock %}</div>
<div id="footer_general" class="grid_8">
	<p>The contents of this site are restricted and requires the written consent of the investigators.  <span about="doap:Project">Source code for <span property="doap:Name">ExperimentDB</span> is freely available under the <a rel="doap:license" href="http://www.opensource.org/licenses/bsd-license.php">New BSD License</a> from <a rel="doap:homepage" title="ExperimentDB Homepage" href="http://code.google.com/p/experimentdb/">here</a>.  Please report any bugs or suggestions <a rel="doap:bug-database" href="http://code.google.com/p/experimentdb/issues/list" title="Issues Database">here</a>.  For instructions please see the <a rel="doap:wiki" href="http://code.google.com/p/experimentdb/w/list">project wiki</a>.</span></p>
</div>

<div id="validators" class="grid_4">
	<a href="http://validator.w3.org/check?uri=referer">
		<img src="http://www.w3.org/Icons/valid-xhtml-rdfa" alt="Valid XHTML + RDFa" />
	</a>
	<a href="http://jigsaw.w3.org/css-validator/">
		<img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS" />
	</a>
</div>
</div>
</body>

</html>
